package com.smfx.yxt.service;

import java.util.List;

import com.smfx.yxt.model.OnlineRepair;
import com.smfx.yxt.model.RepairBuilding;
import com.smfx.yxt.model.RepairType;
import com.smfx.yxt.page.Page;
import com.smfx.yxt.reqVo.FailRepairReqVO;
import com.smfx.yxt.view.OnlineRepairView;

/**
 * 故障保修，接口
 * */
public interface IOnlineRepairService {
	
	int insertSelective(OnlineRepair record);

    OnlineRepair selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OnlineRepair record);

    List<OnlineRepair> selectListByPage(Page<OnlineRepair> page);
    
    /**
     * 查询报修类别
     * @return
     */
    List<RepairType> selectRepaireTypeList();
    
    /**
     * 查询报修建筑物
     * @return
     */
    List<RepairBuilding> selectRepairBuildingList();
    /**
     * 是否是维修人员
     * @param teacherName
     * @return
     */
    int isRepairMan(String teacherName); 
    /**
     * 新增报修
     * @param reqVO
     * @return
     */
    int addRepaire(FailRepairReqVO reqVO);
    /**
     * 维修
     * @param reqVO
     * @return
     */
    int updateRepaire(FailRepairReqVO reqVO);
    
    OnlineRepairView selectDetailView(Integer id);
}
